package com.azzcs.mvc.mav;

import java.util.HashMap;
import java.util.function.BiConsumer;

/**
 * @Author: wzg
 * @Date: 2020/12/29 下午2:09
 */
public class SimpleModel extends HashMap<String,Object> implements Model {

    @Override
    public Object getAttribute(String key) {
        return this.get(key);
    }

    @Override
    public Object setAttribute(String key, Object value) {
        return this.put(key, value);
    }

    @Override
    public void forEach(BiConsumer action) {
        super.forEach(action);
    }
}
